import request from '../utils/request'
import { AxiosResponse } from 'axios'
export interface IAdminLogin {
  adminname:string
  password:string
}

export function login(params: IAdminLogin): Promise<AxiosResponse<any>> {
  return request({
    url:'/admin/login',
    method:'POST',
    data:params
  })
}